﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucHugKidNewsList.ascx.cs"
    Inherits="Modules_HugKid_wucHugKidNewsList" %>
<%@ Register Src="~/Modules/WebsiteFrontSub/wucPaging.ascx" TagName="wucPaging" TagPrefix="uc1" %>
<div class="middlepage">
    <div style="margin-bottom: 10px;">
        <%--<img src="App_Themes/HugKidTheme/images2/bannerPro.jpg">--%>
    </div>
    <div>
        <h2 style="display: block; color: #391516; background-color: #f8f8f8; font-size: 18px;
            font-weight: normal; border: solid 1px #e3e3e3; padding: 3px 10px; margin-bottom: 6px;
            color: #C90F00;">
            <asp:Label ID="lblCap" runat="server" Text=""></asp:Label>
        </h2>
        <asp:DataList ID="dlNewsList" runat="server" RepeatColumns="1">
            <ItemTemplate>
                <table border="0" cellpadding="0" cellspacing="0" align="left" width="100%">
                    <tr>
                        <td align="center" class="itempro">
                            <a href='Default.aspx?Page=NewsDetail&NewsId=<%# Eval("NewsID") %>'>
                                <img src="<%# Eval("Image").ToString().Replace("~/","") + "thumbimg/thumb150x135.jpg" %>"
                                    style="width: 144px; height: 100px; overflow: hidden;" /></a></td>
                        <td width="10">
                        </td>
                        <td align="left" valign="top">
                            <table border="0" cellpadding="0" cellspacing="0" align="left" width="100%">
                                <tr>
                                    <td valign="top" style="padding-bottom: 15px;" class="news-title">                                       
                                            <a href='Default.aspx?page=NewsDetail&newsID=<%# Eval("NewsID") %>'>
                                                <%# Eval("Tittle") %>
                                            </a>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding: 5px 0 0 0; text-align: justify; color: #4D4D4D; line-height: 1.6;"
                                        align="left" valign="top">
                                        <%# Eval("Summary") %>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="10" colspan="3">
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div align="right">
        <uc1:wucPaging ID="PagingObject" runat="server" CurrentPage="1" NumberOfPageDisplay="5"
            PageSize="7" EnableViewState="true" PagingDisplayNavigatorSetting="PrevAndNext"
            PagingNavigatorSetting="Hyperlink" PagingNumberSetting="NotUsed" PagingObjectContainerCssClass="SongListPagingObjectContainer"
            NavigatorObjectPrevLinkCssClass="PagingNextPrevText" NavigatorObjectPrevLinkText="Trang trước"
            NavigatorObjectNextLinkText="Trang sau" NavigatorObjectNextLinkCssClass="PagingNextPrevText"
            NavigatorObjectFirstLinkCssClass="PagingNextPrevText" NavigatorObjectFirstLinkText="<< First "
            NavigatorObjectLastLinkCssClass="PagingNextPrevText" NavigatorObjectLastLinkText=" Last >>"
            NavigatorObjectFirstContainerCssClass="SongListNavigatorObjectPrevContainerCssClass"
            NavigatorObjectLastContainerCssClass="SongListNavigatorObjectPrevContainerCssClass"
            NavigatorObjectPrevContainerCssClass="SongListNavigatorObjectPrevContainerCssClass"
            NavigatorObjectPrevImageButtonCssClass="SongListNavigatorObjectPrevImageButton"
            NavigatorObjectPrevImageButtonImageUrl="~/App_Themes/Hitech/images/Prev.jpg"
            NavigatorObjectNextContainerCssClass="SongListNavigatorObjectNextContainerCssClass"
            NavigatorObjectNextImageButtonCssClass="SongListNavigatorObjectNextImageButton"
            NavigatorObjectNextImageButtonImageUrl="~/App_Themes/Hitech/images/Next.jpg"
            NavigatorObjectNumericContainerCssClass="SongListNavigatorObjectNumericContainer"
            NumericSectionNumericListCssClass="SongListNumericSectionNumericList" NumericSectionNumericListItemContainerCssClass="SongListNumericSectionNumericListItemContainer"
            NumericSectionNumericListItemSelectedContainerCssClass="SongListNumericSectionNumericListItemSelectedContainer"
            NumericSectionNumericListHyperlinkCssClass="SongListNumericSectionNumericListHyperlink"
            NumericSectionNumericListHyperlinkSelectedCssClass="SongListNumericSectionNumericListHyperlinkSelected"
            NumericSectionNumericListItemCssClass="SongListNumericSectionNumericListItem"
            NumericSectionNumericListItemSelectedCssClass="SongListNumericSectionNumericListItemSelected"
            NumericSectionNumericListItemAlternatingCssClass="SongListNumericSectionNumericListItem"
            PagesCurrentCssClass="SongListNumericSectionNumericListHyperlink" PagesCurrentTotalSeperatorText=" / "
            PagesCurrentTotalSeperatorCssClass="SongListNumericSectionNumericListHyperlink"
            PagesTotalCssClass="SongListNumericSectionNumericListHyperlink" RecordsCurrentCssClass="SongListNumericSectionNumericListHyperlink"
            RecordsCurrentTotalSeperatorText=" / " RecordsCurrentTotalSeperatorCssClass="SongListNumericSectionNumericListHyperlink"
            RecordsTotalCssClass="SongListNumericSectionNumericListHyperlink" OnPageSelectedIndexChanged="PagingObject_PageSelectedIndexChanged" />
    </div>
</div>
